package com.example.siyun.service.impl.statisticsserviceimpl;

import com.example.siyun.mapper.statisticsmapper.CoustaMapper;
import com.example.siyun.pojo.CourseTable;
import com.example.siyun.pojo.JsProduct;
import com.example.siyun.pojo.UserList;
import com.example.siyun.service.statisticsservice.CoustaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CoustaServiceimpl implements CoustaService {


    @Autowired
    private CoustaMapper coustaMapper;

    /**
     * 课程收藏统计
     * @return
     */
    @Override
    public List<Integer> getCourseListId() {
        return coustaMapper.getCourseListId();
    }
    @Override
    public List<String> getCourseName(List<Integer> courselist) {
        return coustaMapper.getCourseName(courselist);
    }
    @Override
    public int getCourseStacount(String name) {
        return coustaMapper.getCourseStacount(name);
    }

    /**
     * 课程喜欢统计
     * @return
     */
    @Override
    public List<CourseTable> getCourseLike() {
        return coustaMapper.getCourseLike();
    }
    @Override
    public int getCourseCount(String name) {
        return coustaMapper.getCourseCount(name);
    }

    /**
     * 商品喜欢统计
     * @return
     */
    @Override
    public List<JsProduct> getProductLike() {
        return coustaMapper.getProductLike();
    }
    @Override
    public int getProductCount(String name) {
        return coustaMapper.getProductCount(name);
    }

    /**
     * 商品购买订单统计
     * @return
     */
    @Override
    public List<JsProduct> getProductGouMai() {
        return coustaMapper.getProductGouMai();
    }
    @Override
    public Integer getProductCiShu(String name) {
        return coustaMapper.getProductCiShu(name);
    }

    /**
     * 用户统计
     * @return
     */
    @Override
    public List<UserList> getUser() {
        return coustaMapper.getUser();
    }
    @Override
    public int getUserCount(String name) {
        return coustaMapper.getUserCount(name);
    }

    /**
     * 课程购买订单统计
     * @return
     */
    @Override
    public List<CourseTable> keChengGouMai() {
        return coustaMapper.keChengGouMai();
    }
    @Override
    public Integer keChengCiShu(String name) {
        return coustaMapper.keChengCiShu(name);
    }

}
